package org.yscz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 量表算法关联表
 *
 * @author achen
 * @create 2021-10-09 16:23
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_scale_alg")
public class ScaleAlg implements Serializable {
    /**
     * 量表算法主键ID
     */
    @TableId(value = "scale_alg_id", type = IdType.AUTO)
    private Long scaleAlgId;

    /**
     * 因子名称
     */
    @TableField(value = "factor_name")
    private String factorName;

    /**
     * 运算符（加、减、乘、除、总分、平均分）
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 系数
     */
    @TableField(value = "ratio")
    private Double ratio;

    /**
     * 量表ID
     */
    @TableField(value = "scale_id_fk")
    private Long scaleIdFk;

    /**
     * 算法ID
     */
    @TableField(value = "alg_id_fk")
    private Long algIdFk;
}
